package com.tea.funct.service;

import com.tea.funct.domain.TeaCategory;

import java.util.List;

/**
 * 产品大类Service接口
 *
 * @author Sophia
 * @date 2024-05-25
 */
public interface ITeaCategoryService {
    /**
     * 查询产品大类
     *
     * @param id 产品大类主键
     * @return 产品大类
     */
    public TeaCategory selectTeaCategoryById(Long id);

    /**
     * 查询产品大类列表
     *
     * @param teaCategory 产品大类
     * @return 产品大类集合
     */
    public List<TeaCategory> selectTeaCategoryList(TeaCategory teaCategory);

    /**
     * 新增产品大类
     *
     * @param teaCategory 产品大类
     * @return 结果
     */
    public int insertTeaCategory(TeaCategory teaCategory);

    /**
     * 修改产品大类
     *
     * @param teaCategory 产品大类
     * @return 结果
     */
    public int updateTeaCategory(TeaCategory teaCategory);

    /**
     * 批量删除产品大类
     *
     * @param ids 需要删除的产品大类主键集合
     * @return 结果
     */
    public int deleteTeaCategoryByIds(Long[] ids);

    /**
     * 删除产品大类信息
     *
     * @param id 产品大类主键
     * @return 结果
     */
    public int deleteTeaCategoryById(Long id);

    List<TeaCategory> selectTeaCategoryListAll();

    // 根据大类名称查询大类信息
    TeaCategory selectTeaCategoryByName(String categoryName);
}
